package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Cart;

public interface CartDAO {
    //通过username搜索user的cart
    Cart getCartByUsername(String username);

    void insertCartByUsername(String username,String itemId,int quantity);

    void updateCartQuantity(String username,String itemId,int quantity);

    void deleteCarItemtByUsername(String username,String itemId);

    void delteALL(String username);
}
